<?php
// +----------------------------------------------------------------------
// | EtrolPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Author:HCZ <huangchengze@etrol.com>
// +-----------------------------------------------------------------------

namespace app\common\model;

use app\common\model\Base;
/**
 * 审核事项
 */
class Wfprocess extends Base{
	protected $name = 'wfprocessinfo';
	
	protected $createTime = 'createTime';
	protected $updateTime = 'updateTime';
	
	
	public function wfitem(){
		return $this->hasOne('Wfitem','id','wfItemInfoId');
	}
	
	public function wfstep(){
		return $this->hasOne('Workstep','id','wfStepInfoId');
	}
	
	public function getEndTimeAttr($value,$data){
		if($data['endTime']){
			return date('Y-m-d H:i:s');
		}
	}
	
}